import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import index from '../containers/index/module'
import todo from '../containers/todolist/module'
import query from '@/containers/query/module.tsx'

// 合并reducer
const reducers = combineReducers({
  index,
  todo,
  query
})

const store = createStore(reducers, applyMiddleware(thunk))


export default store;